package conf

import "time"

var (
	MysqlDsn           string = "mysql.dsn"
	MysqlTables        string = "mysql.tables"
	MysqlOrm           string = "mysql.orm"
	MysqlSkippedTables string = "mysql.tables.skip"
	OutputDir          string = "output.dir"
	OutputNameSpace    string = "output.namespace"

	TableNameWithSchema string = "output.schema"
)

var ConfigKeys = []string{
	MysqlDsn,
	MysqlTables,
	MysqlOrm,
	MysqlSkippedTables,
	OutputDir,
	OutputNameSpace,
	TableNameWithSchema,
}

type AppGroupOrg2 struct {
	ID         int       `json:"id" gorm:"primaryKey;column:id" column:"id"`
	AppGroupId int       `json:"app_group_id" gorm:"column:app_group_id" column:"\"APP_GROUP_ID\""`
	Source     int       `json:"source" gorm:"column:source" column:"\"SOURCE\""`
	OrgId      int       `json:"org_id" gorm:"column:org_id" column:"\"ORG_ID\""`
	RoleId     int       `json:"role_id" gorm:"column:role_id" column:"\"ROLE_ID\""`
	CreatedAt  time.Time `json:"created_at" gorm:"column:created_at" column:"\"CREATED_AT\""`
	CreateId   int       `json:"create_id" gorm:"column:create_id" column:"\"CREATE_ID\""`
}
